package com.yoshino.composite;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yoshino
 **/
public class Test {

    public static void main(String[] args) {
        Map<Integer, String> hashMap = new HashMap<Integer, String>();
        hashMap.put(0, "东游记");//直接存放叶子节点(Node)
        Map<Integer, String> map = new HashMap<Integer, String>();
        map.put(1, "西游记");
        map.put(2, "红楼梦");
        hashMap.putAll(map);
        System.out.println(hashMap);
    }
}
